package com.cf.r1034;

import java.io.*;

public class a {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StreamTokenizer in = new StreamTokenizer(br);
        PrintWriter out = new PrintWriter(System.out);
        in.nextToken();
        int t = (int) in.nval;
        while (t-- > 0) {
            in.nextToken();
            int n = (int) in.nval;
            int x = n % 4;
            String ans = "";
            if (x == 1 || x == 2 || x == 3) {
                ans = "Alice";
            } else if (x == 0) {
                ans = "Bob";
            }
            out.println(ans);


        }
        out.flush();
        out.close();
        br.close();
    }
}